package zhtt.example.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import zhtt.example.filter.LoginUserSessionWebFilter;

/**
 * Created by zhaoq on   2024/8/3 15:21
 **/
@Configuration
@ConditionalOnProperty(prefix = "dynamicFilter", name = "enabled", havingValue = "ture", matchIfMissing = true)
public class DynamicFilterConfig {
    /*@Bean
    @ConditionalOnProperty(prefix = "dynamicFilter", name = "loginUserSessionWebFilter", havingValue = "true", matchIfMissing = true)
    @Order(1) // 优先级可以根据需要调整
    public LoginUserSessionWebFilter loginUserSessionWebFilter(){
        return new LoginUserSessionWebFilter();
    }*/
}
